package com.itheima.order.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * @author ZhuanZ（无密码）
 */
@Data // Lombok注解，自动生成getter、setter、toString等方法
@NoArgsConstructor // Lombok注解，创建无参构造函数
@AllArgsConstructor // Lombok注解，创建全参构造函数
@TableName("tb_user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "用户ID", example = "1")
    private Long id;

    @ApiModelProperty(value = "用户名", example = "张三")
    private String name;

    @ApiModelProperty(value = "性别", example = "1")
    private Short gender;

    @ApiModelProperty(value = "身份证号", example = "11010519491231002X")
    private String idNo;

    @ApiModelProperty(value = "手机号", example = "13800138000")
    private String phone;

    @ApiModelProperty(value = "密码", example = "password123")
    private String pwd;

    @ApiModelProperty(value = "邮箱", example = "zhangsan@example.com")
    private String email;

    @ApiModelProperty(value = "状态", example = "1")
    private Integer status;

    @ApiModelProperty(value = "创建时间", example = "2023-04-01T12:00:00")
    private LocalDateTime created;

    @ApiModelProperty(value = "修改时间", example = "2023-04-02T12:00:00")
    private LocalDateTime modified;
}